package y2017.date0326am.强转对象;

public abstract class Biology implements Natural {
    private String name;
    private int year;

    protected abstract void setSpecies(String species);

    protected abstract String getSpecies();

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void setYear(int year) {
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public int getYear() {
        return year;
    }
}
